<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>起始页</title>

		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!-- 引入css文件 -->
		<link rel="stylesheet" href=" ./css/sm.min.css">
		<link rel="stylesheet" href=" ./css/sm-extend.min.css">
		<link rel="stylesheet" href=" ./css/iconfont.css">
		<style type="text/css">
			#index{
				margin-top: 0.4rem;
			}
			.page{
				/* margin: 0.2rem; */
			}
		</style>
		
	</head>
	<body>
		<!-- page 容器 -->
		<div class="page">
			<!-- 这里是页面内容区 -->
			<div class="content">
				<img src="img/IndexBG.gif" style="height: 100%;width: 100%;">
				
			</div>
		</div>
		<div id="app"></div>
		
		<script src='./js/jquery-3.2.1.min.js'></script>
		<script src='./js/sm.js'></script>
		<script src='./js/sm-extend.js'></script>
		<script src="./js/config.js"></script>
		<script src="./js/vue.js"></script>
		<script src="./js/axios.min.js"></script>
		<script type="text/javascript">
			//认证状态监测
			var storage=window.localStorage;
			var token=storage.getItem("token");
			var refreshtoken=storage.getItem("refreshtoken");
			$(function(){
				$.ajax({
			         type: 'post',
			         url: serviceIP+"/forum/test",
			         dataType: 'json',
					 data:null,
			         headers: {
			 			"token":token,
			 			"refreshtoken":refreshtoken
					},
			        success:function (data) {
			 			setTimeout(function() {
			 				location.href="main-index.html";
			 			}, 100);

			         }
			     });
			});
			/* $.ajaxSetup({
			        statusCode: {
			            401:function(data){
							setTimeout(function() {
								console.log(data.responseJSON.data)
								location.href="login.html";
							}, 1000);
			            }
			        }
			   }) */
		</script>
		<script>
			$.init();
		</script>
	</body>

</html>
